Array Class
Description:
A class that creates Array objects.
__call
Type: Metamethod.
Description:
Metamethod to create a new, empty array object.
Signature:
metamethod __call: function(self: ArrayClass): Array
Returns:
Return Type | Description |
---|---|
Array | A new Array object. |
__call
Type: Metamethod.
Description:
Metamethod to create a new array object initialized with a list of items.
Signature:
metamethod __call: function(self: ArrayClass, items: {Item}): Array
Parameters:
Parameter | Type | Description |
---|---|---|
items | {Item} | A table of items to initialize the array with. |
Returns:
Return Type | Description |
---|---|
Array | A new Array object. |